
.text
.globl _start
_start:
	// See if we were started with arguments on the stack
	#cmpl $USTACKTOP, %esp
	#jne args_exist

	// If not, push dummy argc/argv arguments.
	// This happens when we are loaded by the kernel,
	// because the kernel does not know about passing arguments.
	pushl $0
	pushl $0

args_exist:
	call libmain
1:	jmp 1b

